/* 游客信息登记弹窗样式 */
/* 与客服聊天页面保持一致的框架布局 */

/* 弹窗遮罩层 - 与 chat-modal-overlay 一致 */
.tourist-info-overlay {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: auto;
    height: auto;
    background: transparent;
    z-index: 35000;
    pointer-events: none;
}

/* 弹窗内容盒子 - 与 chat-modal-content 一致 */
.tourist-info-content {
    width: 505px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    box-sizing: border-box;
}

/* 头部区域 - 与 chat-header 一致 */
.tourist-info-header {
    background: #221e1d;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

/* 标题 */
.tourist-info-title {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* 关闭按钮 */
.close-tourist-info {
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.close-tourist-info:hover {
    opacity: 1;
}

/* 表单容器 - 可滚动区域 */
.tourist-info-form-wrapper {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

/* 副标题 */
.tourist-info-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.5;
    text-align: center;
}

/* 表单样式 */
.tourist-info-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* 输入框组 */
.tourist-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 标签 */
.tourist-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 3px;
}

.required-star {
    color: #ef4444;
    font-weight: bold;
}

.optional-tag {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

/* 输入框 */
.tourist-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.2s ease;
    background: #fff;
}

.tourist-input:focus {
    border-color: #221e1d;
}

.tourist-input.is-error {
    border-color: #ef4444;
}

.tourist-input::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* 文本域 */
.tourist-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.2s ease;
    background: #fff;
    resize: none;
    min-height: 60px;
    max-height: 80px;
    font-family: inherit;
    line-height: 1.4;
}

.tourist-textarea:focus {
    border-color: #221e1d;
}

.tourist-textarea::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

/* 错误提示 */
.tourist-error {
    display: block;
    font-size: 11px;
    color: #ef4444;
    min-height: 14px;
    padding-left: 2px;
}

.tourist-general-error {
    text-align: center;
    font-size: 12px;
    min-height: 16px;
    margin-top: 4px;
}

/* 底部区域 - 与 chat-input-area 一致 */
.tourist-submit-area {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* 提交按钮 - 与 send-btn 风格一致 */
.tourist-submit-btn {
    width: 100%;
    padding: 12px;
    background: #221e1d;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tourist-submit-btn:hover {
    background: #333;
}

.tourist-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.tourist-submit-btn.loading .btn-text {
    display: none;
}

.tourist-submit-btn.loading .btn-loading {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* 加载动画 */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 滚动条样式 - 与聊天区域一致 */
.tourist-info-form-wrapper::-webkit-scrollbar {
    width: 5px;
}

.tourist-info-form-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.tourist-info-form-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 5px;
}